Optimal. Leaf size=49 \[ \frac {3 \sec (a+b x)}{16 b}-\frac {3 \tanh ^{-1}(\cos (a+b x))}{16 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{16 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {4287, 2622, 288, 321, 207} \[ \frac {3 \sec (a+b x)}{16 b}-\frac {3 \tanh ^{-1}(\cos (a+b x))}{16 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{16 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 288
Rule 321
Rule 2622
Rule 4287
Rubi steps
\begin {align*} \int \cos (a+b x) \csc ^3(2 a+2 b x) \, dx &=\frac {1}{8} \int \csc ^3(a+b x) \sec ^2(a+b x) \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {x^4}{\left (-1+x^2\right )^2} \, dx,x,\sec (a+b x)\right )}{8 b}\\ &=-\frac {\csc ^2(a+b x) \sec (a+b x)}{16 b}+\frac {3 \operatorname {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{16 b}\\ &=\frac {3 \sec (a+b x)}{16 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{16 b}+\frac {3 \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{16 b}\\ &=-\frac {3 \tanh ^{-1}(\cos (a+b x))}{16 b}+\frac {3 \sec (a+b x)}{16 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{16 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.25, size = 143, normalized size = 2.92 \[ \frac {\csc ^4(a+b x) \left (-6 \cos (2 (a+b x))+2 \cos (3 (a+b x))+3 \cos (3 (a+b x)) \log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )-3 \cos (3 (a+b x)) \log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )+\cos (a+b x) \left (3 \log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )-3 \log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )-2\right )+2\right )}{16 b \left (\csc ^2\left (\frac {1}{2} (a+b x)\right )-\sec ^2\left (\frac {1}{2} (a+b x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.47, size = 96, normalized size = 1.96 \[ \frac {6 \, \cos \left (b x + a\right )^{2} - 3 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) + 3 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) - 4}{32 \, {\left (b \cos \left (b x + a\right )^{3} - b \cos \left (b x + a\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.41, size = 140, normalized size = 2.86 \[ \frac {\frac {\frac {14 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {3 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + 1}{\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + \frac {{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}} - \frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 6 \, \log \left (\frac {{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right )}{64 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.95, size = 57, normalized size = 1.16 \[ -\frac {1}{16 b \sin \left (b x +a \right )^{2} \cos \left (b x +a \right )}+\frac {3}{16 b \cos \left (b x +a \right )}+\frac {3 \ln \left (\csc \left (b x +a \right )-\cot \left (b x +a \right )\right )}{16 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 974, normalized size = 19.88 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 49, normalized size = 1.00 \[ -\frac {3\,\mathrm {atanh}\left (\cos \left (a+b\,x\right )\right )}{16\,b}-\frac {\frac {3\,{\cos \left (a+b\,x\right )}^2}{16}-\frac {1}{8}}{b\,\left (\cos \left (a+b\,x\right )-{\cos \left (a+b\,x\right )}^3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________